64741f16e3b291b74f0cabd0e6ee8665fe778501
[project/luci.git] /
1 /*
2 * Copyright 2013 Freifunk Augsburg / Michael Wendland <michael@michiwend.com>
3 * Licensed to the public under the Apache License 2.0.
4 */
5
6 'use strict';
7
8 return L.Class.extend({
9 title: _('Splash Leases'),
10
11 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
12 return {
13 title: "%H: Splash Leases",
14 vlabel: "Active Clients",
15 y_min: "0",
16 number_format: "%5.1lf",
17 data: {
18 sources: {
19 splash_leases: [ "leased", "whitelisted", "blacklisted" ]
20 },
21 options: {
22 splash_leases__leased : { color: "00CC00", title: "Leased", overlay: false },
23 splash_leases__whitelisted: { color: "0000FF", title: "Whitelisted", overlay: false },
24 splash_leases__blacklisted: { color: "FF0000", title: "Blacklisted", overlay: false }
25 }
26 }
27 };
28 }
29 });